import React from 'react';
import {messages} from "share/common";
import moment from "moment/moment";

export default {
  getOrderMealsColumns() {
    return [
      {
        title: messages('financial-management.key343')/*公司名称*/,
        key: "companyName",
        dataIndex: 'companyName',
        width: 120,
      },
      {
        /*结算主键*/
        title: messages('financial-management.key859')/*结算ID*/,
        key: "recordId",
        dataIndex: 'recordId',
        width: 120,
      },
      {
        /*订单号*/
        title: messages('financial-management.key52'/*订单号*/),
        key: "orderNo",
        dataIndex: 'orderNo',
        width: 120,
      },
      // todo 结算日期
      {
        /*供应商*/
        title: messages('financial-management.key856')/*消费商名称*/,
        key: "vendor",
        dataIndex: 'vendor',
        width: 120,
      },
      {
        title: messages('financial-management.key821')/*预订人工号*/,
        key: 'bookerCode',
        dataIndex: 'bookerCode',
        width: 120,
      },
      {
        title: messages('financial-management.key822')/*预订人姓名*/,
        key: 'bookerName',
        dataIndex: 'bookerName',
        width: 120,
      },
      // todo 预订人部门
      {
        /*业务类型*/
        title: messages('financial-management.key817')/*业务类型*/,
        key: "diningType",
        dataIndex: 'diningType',
        width: 120,
      },
      {
        title: messages('financial-management.key60'/*支付类型*/),
        dataIndex: 'payType',
        key: 'payType',
        width: 120,
      },
      {
        title: messages('financial-management.key823')/*支付金额*/,
        key: 'finalFee',
        dataIndex: 'finalFee',
        width: 120,
      },
      {
        /*公司支付金额*/
        title: messages('financial-management.key731')/*公司支付金额*/,
        key: "entFee",
        dataIndex: 'entFee',
        width: 120,
      },
      {
        title: messages('financial-management.key732')/*个人支付金额*/,
        key: 'personalFee',
        dataIndex: 'personalFee',
        width: 120,
      },
      {
        title: messages('financial-management.key830')/*服务费金额*/,
        key: "serviceFee",
        dataIndex: 'serviceFee',
        width: 120,
      },
      {
        title: messages('financial-management.key829')/*服务费类型*/,
        key: "serviceTypeDis",
        dataIndex: 'serviceTypeDis',
        width: 120,
      },
      {
        title: messages('financial-management.key833')/*收货人电话*/,
        key: "addressPhone",
        dataIndex: 'addressPhone',
        width: 120,
      },
      {
        title: messages('financial-management.key834')/*收货人地址*/,
        key: "addressAddress",
        dataIndex: 'addressAddress',
        width: 120,
      },
      {
        title: messages('financial-management.key395')/*收货人姓名*/,
        key: "addressName",
        dataIndex: 'addressName',
        width: 120,
      },
      {
        title: messages('financial-management.key827')/*餐补金额*/,
        key: "allowanceAmount",
        dataIndex: 'allowanceAmount',
        width: 120,
      },
      // todo 餐补规则名称
      {
        title: messages('financial-management.key824')/*订单状态*/,
        key: "orderStatus",
        dataIndex: 'orderStatus',
        width: 120,
      },
      {
        title: messages('financial-management.key831')/*订单备注*/,
        key: "remark",
        dataIndex: 'remark',
        width: 120,
      },
      {
        title: messages('financial-management.key825')/*餐厅名称*/,
        key: "restaurantName",
        dataIndex: 'restaurantName',
        width: 120,
      },
      {
        /*下单时间*/
        title: messages('financial-management.key818')/*下单时间*/,
        key: "orderCreateTime",
        dataIndex: 'orderCreateTime',
        width: 120,
        render: (value) => moment(value).format('YYYY-MM-DD HH:mm')
      },
      {
        title: messages('financial-management.key832')/*计划配送时间*/,
        key: "receivePlanTime",
        dataIndex: 'receivePlanTime',
        width: 120,
      },
      {
        title: messages('financial-management.key867')/*行程号*/,
        key: "journeyId",
        dataIndex: 'journeyId',
        width: 120,
      },
      {
        title: messages('financial-management.key171')/*申请单号*/,
        key: "businessCode",
        dataIndex: 'businessCode',
        width: 120,
      },
      // todo 申请单名称
      // todo 申请人姓名
      // todo 用餐类型
      // todo 用餐开始日期
      // todo 用餐结束日期
      // todo 有效时间
      // todo 用餐城市
      // todo 用餐标准
      // todo 币种
      // todo 备注
      // todo 表单成本中心1code
      // todo 表单成本中心1名称
      // todo 表单成本中心2code
      // todo 表单成本中心2名称
      // todo 表单成本中心3code
      // todo 表单成本中心3名称
      // todo 表单成本中心4code
      // todo 表单成本中心4名称
      // todo 表单成本中心5code
      // todo 表单成本中心5名称
    ]
  },
}
